<template>
  <el-descriptions class="margin-top" :column="3" :size="size" border>
    <el-descriptions-item>
      <template slot="label">
        <i class="el-icon-user"></i>
        姓名
      </template>
      {{ user.name }}
    </el-descriptions-item>
    <el-descriptions-item>
      <template slot="label">
        <i class="el-icon-mobile-phone"></i>
        ID
      </template>
      {{ user.id }}
    </el-descriptions-item>
    <el-descriptions-item>
      <template slot="label">
        <i class="el-icon-location-outline"></i>
        移动电话
      </template>
      {{ user.phone }}
    </el-descriptions-item>
    <el-descriptions-item>
      <template slot="label">
        <i class="el-icon-location-outline"></i>
        居住地址
      </template>
      {{ user.address }}
    </el-descriptions-item>
    <el-descriptions-item>
      <template slot="label">
        <i class="el-icon-location-outline"></i>
        住宅电话
      </template>
      {{ user.telephone }}
    </el-descriptions-item>
    <el-descriptions-item>
      <template slot="label">
        <i class="el-icon-location-outline"></i>
        登录名称
      </template>
      {{ user.username }}
    </el-descriptions-item>
    <el-descriptions-item>
      <template slot="label">
        <i class="el-icon-tickets"></i>
        备注
      </template>
      <el-tag size="small">学校</el-tag>
      中原工学院
    </el-descriptions-item>
  </el-descriptions>
  
</template>

<script>
export default {
  data() {
    return {
      user: JSON.parse(window.sessionStorage.getItem("user")),
      size: "",
    };
  },
  methods: {

  },
};
</script>

<style>
.home-container {
  height: 100%;
}
</style>
